/**
 * Welcome to https://waylau.com
 */
package com.hong.spring.h2;


import com.hong.spring.h2.service.UserService;
import com.hong.spring.h2.vo.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 *
 * 功能描述:测试实现
 *
 * @param:
 * @return:
 * @auther: csh
 * @date: 2020/10/16 16:34
 */
public class Application {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		ApplicationContext context = new ClassPathXmlApplicationContext("h2/spring.xml");
		UserService UserService = context.getBean(UserService.class);
		
		List<User> users = UserService.listUser();
		
		for (User user : users) {
			System.out.println(user);
		}
	}

}
